import { inject, injectable } from 'inversify';
import type { EditorMode, IMessageService, IModeRegistry } from '../types';

@injectable()
export class MessageService implements IMessageService {
    constructor(
        @inject('IModeRegistry') private modeRegistry: IModeRegistry
    ) { }

    getMessage(mode: EditorMode): string {
        const feature = this.modeRegistry.getModeFeature(mode);
        return feature?.message || '';
    }
} 